import { http } from '@/utils/http/axios';

/**
 * @description: 行政区划数据
 */
export function regionTrees(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/regionTrees',
    method: 'POST',
    data: params,
  });
}


/**
 * @description: 行政区域缓存初始化
 */
export function loadProvinces(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/loadProvinces',
    method: 'POST',
    data: params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 查询行政区划数据列表
 */
export function regionPageTree(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/regionPageTree',
    method: 'POST',
    data: params,
  });
}
/**
 * @description: 查询行政区子集数据查询
 */
export function regionChildren(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/regionChildren',
    method: 'POST',
    data: params,
  });
}
/**
 * @description: 新增行政区划
 */
export function saveRegion(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/saveRegion',
    method: 'POST',
    data: params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 编辑行政区划
 */
export function updateRegion(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/updateRegion',
    method: 'POST',
    data: params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 删除行政区划
 */
export function removeRegion(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysProvinces/removeRegion',
    method: 'POST',
    data: params,
  }, {
    isTransformResponse: false,
  });
}